// 支付相关方法
export const invokePlatformPay = (prepayRes) => {
    return new Promise((reslove, reject) => {
        wx.requestPayment({
            timeStamp: prepayRes.timeStamp,
            nonceStr: prepayRes.nonce,
            package: prepayRes.package,
            signType: prepayRes.signType,
            paySign: prepayRes.paySign,
            success (res) {
                reslove(true);
            },
            fail (res) {
                console.error('支付失败原因：', res);
                reslove(false);
            }
        });
    });
};